package de.clapp.backend.requests;

import java.lang.reflect.Type;

import de.clapp.client.musicbox.MusicBoxModel;

public class MusicVoteRequestListener implements ServerRequest
{
    private static final long serialVersionUID = -1901988650008997500L;

    @Override
    public Type getReturnType()
    {
        return Object.class;
    }

    @Override
    public Object getItem()
    {
        return new Object();
    }

    @Override
    public void setItem(Object item)
    {

    }

    @Override
    public synchronized Object execute()
    {
        MusicBoxModel.getI().waitForVote();

        return new Object();
    }
}
